import type { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/system',
    name: 'system',
    meta: {
      title: '系统管理'
    },
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: 'user',
        name: 'system_user',
        meta: {
          title: '用户管理'
        },
        component: () => import('@/views/system/user/index.vue')
      },
      {
        path: 'menu',
        name: 'system_menu',
        meta: {
          title: '菜单管理'
        },
        component: () => import('@/views/system/menu.vue')
      },
      {
        path: 'role',
        name: 'system_role',
        meta: {
          title: '角色管理'
        },
        component: () => import('@/views/system/role.vue')
      }
    ]
  }
]

export default routes
